home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / g_man / cat3 / ftn / screen.z / screen
Encoding:
Text File  |  1998-10-20  |  1.7 KB  |  67 lines

  1.  
  2.  
  3.  
  4. ssssccccrrrreeeeeeeennnn((((3333GGGG))))                                                          ssssccccrrrreeeeeeeennnn((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ssssccccrrrreeeeeeeennnn - map world space to absolute screen coordinates
  10.  
  11. FFFFOOOORRRRTTTTRRRRAAAANNNN SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  12.      ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee ssssccccrrrreeeeeeeennnn
  13.  
  14. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  15.      _n_o_n_e
  16.  
  17. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.      ssssccccrrrreeeeeeeennnn sets the projection matrix and viewport of the current window so
  19.      as to map world space to absolute screen coordinates (instead of to the
  20.      more usual window-relative screen coordinates).  This provides a
  21.      convenient coordinate system for operations that are not constrained to a
  22.      window, e.g. reading pixels.
  23.  
  24.      ssssccccrrrreeeeeeeennnn is equivalent to:
  25.  
  26.            integer*4 xmin, ymin
  27.  
  28.            call getorg(xmin, ymin)
  29.            call viewpo(-xmin, getgde(GDXPMA)-xmin,
  30.           +            -ymin, getgde(GDYPMA)-ymin)
  31.            call ortho2(-0.5, getgde(GDXPMA)+0.5,
  32.           +            -0.5, getgde(GDYPMA)+0.5)
  33.  
  34.  
  35. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  36.      fullsc, getgde, getori, viewpo, ortho2
  37.  
  38. NNNNOOOOTTTTEEEE
  39.      This routine is available only in immediate mode.
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.